class student:
    def __init__(self, name, age, gender, score):
        self.name = name
        self.age = age
        self.gender = gender
        self.score = score
        

    def info(self):
        print(f"Name: {self.name}, Age: {self.age},gender: {self.gender}, score: {self.score}")
        
print("请输入3个学生的信息：")
lst = list()
    
for i in range(3):
    s = input(f"请输入第{i}位学生的信息及成绩")
    s_lst = s.split('#')
    stu = student(s_lst[0], s_lst[1], s_lst[2], s_lst[3])
    lst.append(stu)
        
        
for i in lst:
    i.info()
        
        
    